﻿@model AdventureWorks.Entities.ProductModel

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>ProductModel</legend>

    <div class="display-label">Name</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">CatalogDescription</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CatalogDescription)
    </div>

    <div class="display-label">ModifiedDate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ModifiedDate)
    </div>
	<br /><br />
	<fieldset>
		<legend>Products</legend>
		@foreach (var product in Model.Products)
		{
			@Html.Partial("DetailProductShort", product)
			@Html.ActionLink("Details", "../Product/Details", new { ID = product.ID })
		}
	</fieldset>

</fieldset>
<div class="exception-label">@ViewBag.ExceptionMessage</div>
@using (Html.BeginForm()) {
    <p>
	<input type="submit" value="Delete" />							   
     | @Html.ActionLink("Back to List", "Index")
    </p>
}
